package com.yhq.thrift.demo.springserver;



import org.apache.thrift.TException;
import org.springframework.stereotype.Service;
import shared.SharedStruct;
import shared.SharedService.Iface;

@Service
public class SharedImpl implements Iface {
    public SharedImpl() {
        super();
    }

    @Override
    public SharedStruct getStruct(int key) throws TException {
        SharedStruct result = new SharedStruct();
        result.setKey(key);
        result.setValue("Always the same (Shared).");
        return result;
    }

}